@CHARSET "UTF-8";
/* 配色方案 */
:root {
    --primary: #21AABD;
    --secondary: #FEE2CC;
    --accent1: #D49B6C;
    --accent2: #BE4D2B;
    --accent3: #F78127;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background: linear-gradient(to right, var(--primary), #1a8da0);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent3);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background-color: var(--accent3);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
    color: var(--secondary);
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 登录表单样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 0;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-box h2 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 28px;
}

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 170, 189, 0.2);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #1a8da0;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: #1a8da0;
}

.btn-accent {
    background-color: var(--accent3);
}

.btn-accent:hover {
    background-color: #e06d1a;
}

.btn-danger {
    background-color: var(--danger);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* 首页样式 */
.welcome-section {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary), #1a8da0);
    color: white;
    border-radius: 10px;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 18px;
    opacity: 0.9;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.action-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.action-buttons .btn {
    margin: 0 10px;
}

.content-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    color: var(--primary);
    font-size: 24px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

/* 博客网格样式 */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.4;
}

.card-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.published {
    background-color: var(--success);
    color: white;
}

.status-badge.draft {
    background-color: var(--warning);
    color: #333;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* 文章详情样式 */
.article-header {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-header h1 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 16px;
    min-height: 500px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 表单容器样式 */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-container h2 {
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* 个人中心样式 */
.profile-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.profile-header h1 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 10px;
}

.profile-header p {
    color: #666;
    font-size: 18px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.profile-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.user-email {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-form {
    max-width: 600px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.article-item:hover {
    background: #e9ecef;
}

.article-info h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.article-actions {
    display: flex;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links li {
        margin-left: 0;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .blog-grid {
        gap: 15px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .profile-container {
        flex-direction: column;
    }
    
    .article-image {
        height: 200px;
    }
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent3));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section .logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section .logo i {
    margin-right: 10px;
    color: var(--accent3);
    font-size: 28px;
}

.footer-section .logo span {
    background: linear-gradient(45deg, var(--primary), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--accent3);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-section h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent3);
    margin: 10px auto;
    border-radius: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a:hover {
    background: var(--accent3);
    transform: translateY(-3px);
}

.social-links a i {
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent3);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent3);
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.footer-section p i {
    margin-right: 8px;
    color: var(--accent3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 14px;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3::after {
        width: 40px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-section .logo {
        font-size: 20px;
    }
    
    .footer-section .logo i {
        font-size: 24px;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section .logo i {
    animation: float 3s ease-in-out infinite;
}

.social-links a {
    animation: fadeInUp 0.6s ease-out;
}

.social-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover::before {
    opacity: 1;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1a8da0;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top i {
    font-size: 20px;
}

/* 游客页面样式 */
.guest-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.guest-actions .btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
}

/* 认证页面样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 0;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-header p {
    color: #666;
    font-size: 16px;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

/* 分类管理样式 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.page-header h1 {
    color: var(--primary);
    font-size: 32px;
    margin: 0;
}

.categories-container {
    margin-top: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.category-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.category-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 分类选择样式 */
.categories-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-checkbox:hover {
    background: #e9ecef;
    border-color: var(--primary);
}

.category-checkbox input[type="checkbox"] {
    display: none;
}

.category-checkbox .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.category-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.category-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.category-name {
    color: #333;
    font-weight: 500;
}

.no-categories {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.no-categories a {
    color: var(--primary);
    text-decoration: none;
}

.no-categories a:hover {
    text-decoration: underline;
}

/* 文章分类标签样式 */
.article-categories {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-categories i {
    color: var(--primary);
    font-size: 16px;
}

.category-tag {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--accent3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--accent3);
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 20px 25px;
}

.modal-body p {
    margin-bottom: 10px;
    color: #333;
}

.warning {
    color: var(--danger);
    font-weight: 500;
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--danger);
}

.form-actions {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .categories-select {
        flex-direction: column;
    }
    
    .category-checkbox {
        justify-content: flex-start;
    }
}

/* 分类浏览页面样式 */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--primary), #1a8da0);
    color: white;
    border-radius: 15px;
    margin-top: 20px;
}

.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: white;
}

.category-description {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 30px;
}

.category-main {
    min-height: 400px;
}

.category-sidebar {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.category-item.active {
    background: var(--primary);
    color: white;
    border-left-color: var(--accent3);
}

.category-item.active .category-name {
    color: white;
}

.category-item .category-name {
    font-weight: 500;
    color: #333;
}

.category-item i {
    font-size: 12px;
    opacity: 0.7;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-actions .btn {
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 20px 15px;
        margin-top: 10px;
    }
    
    .category-header h1 {
        font-size: 28px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-sidebar {
        padding: 20px;
    }
    
    .category-item {
        padding: 10px 12px;
    }
}